package com.course.domain.dao;

import com.course.domain.model.Student;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by Justin on 2017/5/12.
 */
public interface StudentDao extends JpaRepository<Student, Integer> {

    Student findByAccountId(int accountId);

    List<Student> findAllByStatus(int status);
}
